package com.jyhs.maven.service.impl;

import com.jyhs.maven.dao.MenuMapper;
import com.jyhs.maven.entity.Menu;
import com.jyhs.maven.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    MenuMapper menuMapper;


    @Override
    public List<Menu> selectAll() {
        return menuMapper.selectAll();
    }

    @Override
    public int insert(Menu menu) {
        return menuMapper.insert(menu);
    }

    @Override
    public int delete(Long id) {
        return menuMapper.delete(id);
    }

    @Override
    public int update(Menu menu) {
        return menuMapper.update(menu);
    }
}
